<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The MongoPool class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongolog.setmodule.html">« MongoLog::setModule</a></li>
      <li style="float: right;"><a href="mongopool.getsize.html">MongoPool::getSize »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="mongo.miscellaneous.html">Miscellaneous</a></li>
    <li>The MongoPool class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.mongopool" class="reference">

 <h1 class="title">The MongoPool class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mongo &gt;= 1.2.3)</p>


  <div class="section" id="mongopool.intro">
   <h2 class="title">Introduction</h2>
   <div class="warning"><strong class="warning">Warning</strong>
    <p class="para">
     The current (1.3.0+) releases of the driver no longer implements pooling.
     This class and its methods are therefore deprecated and should not be
     used.
    </p>
   </div>
  </div>


  <div class="section" id="mongopool.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">MongoPool</strong>
     </span>
     {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="mongopool.getsize.html" class="methodname">getSize</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="mongopool.info.html" class="methodname">info</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="mongopool.setsize.html" class="methodname">setSize</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$size</code></span>): <span class="type">bool</span></div>

   }</div>


  </div>
  <div class="section">
   <h2 class="title">Changelog</h2>
   <p class="para">
    <table class="doctable informaltable">
     
      <thead>
       <tr>
        <th>Version</th>
        <th>Description</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>PECL mongo 1.3.0</td>
        <td>
         This functionality has been removed and no longer does anything other
         than emit deprecation warnings. This class is only kept around for
         backwards compatibility and will be removed in the near future.
        </td>
       </tr>

       <tr>
        <td>PECL mongo 1.2.11</td>
        <td>
        Emits <strong><code>E_DEPRECATED</code></strong> when used.
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div>

 </div>

 



















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mongopool.getsize.html">MongoPool::getSize</a> — Get pool size for connection pools</li><li><a href="mongopool.info.html">MongoPool::info</a> — Returns information about all connection pools</li><li><a href="mongopool.setsize.html">MongoPool::setSize</a> — Set the size for future connection pools</li></ul>
</div>
</div></div></body></html>